var __extends =
    (this && this.__extends) ||
    (function () {
      var o = function (t, e) {
        return (o =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (o, t) {
              o.__proto__ = t;
            }) ||
          function (o, t) {
            for (var e in t)
              Object.prototype.hasOwnProperty.call(t, e) && (o[e] = t[e]);
          })(t, e);
      };
      return function (t, e) {
        function n() {
          this.constructor = t;
        }
        if ("function" != typeof e && null !== e)
          throw new TypeError(
            "Class extends value " + String(e) + " is not a constructor or null"
          );
        o(t, e),
          (t.prototype =
            null === e
              ? Object.create(e)
              : ((n.prototype = e.prototype), new n()));
      };
    })(),
  AXHouseRoom = (function (o) {
    function t() {
      var t = o.call(this) || this;
      return (
        (t.skin = ""),
        t.btn_storeItem.on(Laya.Event.CLICK, t, t.onPackageItemsFn),
        t.btn_setFun.on(Laya.Event.CLICK, t, t.onDepositHeroItemsFn),
        t.btn_setLock.on(Laya.Event.CLICK, t, t.onModifyLockItemFn),
        t.btn_raise.on(Laya.Event.CLICK, t, t.onDepositHeroItemsFn),
        t.btn_back.on(Laya.Event.CLICK, t, t.onPreBack),
        t
      );
    }
    return (
      __extends(t, o),
      (t.openHouseView = function () {
        return (
          null == this.houseVC && (this.houseVC = new t()),
          (this.houseVC.btn_setLock.visible = !1),
          this.houseVC
        );
      }),
      (t.prototype.onPackageItemsFn = function () {
        var o = PackageView.openPackageView(!0);
        o.pos(0, 35), Laya.stage.addChild(o);
      }),
      (t.prototype.onDepositHeroItemsFn = function () {
        var o = DepositHeroView.openDepositView(!0);
        o.pos(0, 35), Laya.stage.addChild(o);
      }),
      (t.prototype.onModifyLockItemFn = function () {
        var o = ModifyLockView.openModifyView();
        o.pos(0, 35), Laya.stage.addChild(o);
      }),
      (t.prototype.onPreBack = function () {
        this.removeSelf();
      }),
      t
    );
  })(ui.HouseRoomController.AXHouseRoomViewUI);
